﻿#pragma once
#ifndef XIANCHENG_H
#define XIANCHENG_H
#pragma execution_character_set("utf-8") //解决中文乱码

#include <QThread>
#include <QDebug>
#include "cunchulianbiao.h"
#include <windows.h>
#include <QMessageBox>
#include "ui_mainwindow.h"
//#include "mainwindow.h"


class MainWindow;
class gengxinThread : public QThread {
    Q_OBJECT

public:
    void run();
    void updatetreeWidget();


    struct Node {
        unsigned long long       dizhiaddress;
        unsigned long long       value;
        unsigned long long       oldvalue;
        Node*                    prev;
        Node*                    next;
    };
    struct sendercanshu {
        unsigned long long jiancha2=1;
        unsigned long long jiancha;
        uint processID;
        int xuhao;
        int guize;
        cunchulianbiao *lianbiao;
    };
    sendercanshu *recveshuju = new sendercanshu;
public slots:

    void recveshu(void * dizhi)
    {
        recveshuju=(sendercanshu *)dizhi;
    }
signals:
    void gengxin();
};
#endif // XIANCHENG_H
